/*
 * @Author: blak-kong
 * @Date: 2019-12-12 09:51:42
 * @Email: 546598185@qq.com
 */

const mongoose = require('mongoose');
const Schema = mongoose.Schema;

// Create Schema
const RecommendSchema = new Schema({
    courses: {
        type: Array,
        required: true
    },
    books: {
        type: Array,
        required: true
    },
    createTime: {
        type: Date,
        default: Date.now()
    }
});

module.exports = Recommend = mongoose.model('recommends', RecommendSchema);
